package com.ecmcloud.resource;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ecmcloud.common.dto.IndexPageStatistics;
import com.ecmcloud.common.dto.Result;
import com.ecmcloud.service.IBaseService;

@RestController
@RequestMapping(value = {"base","api/base"})
public class BaseResource {

	@Autowired
    private IBaseService baseService;
    
    /**
     * 首页数据
     * @return
     */
    @GetMapping("index")
    public Result<IndexPageStatistics> index(){
        return baseService.index();
    }

}
